import {Component} from "react";

import { Prompt } from 'react-router-dom'

export default class Reg extends Component {

  state = {

  };

  render() {
    return (
      <div>
        <h3>注册</h3>

        <Prompt
          when={true}
          message={location=>{
            console.log('注册页面跳转处理业务')
            return '你要走了?你有要去'+location.pathname+'那里了？他有什么好的'
          }}
        />
      </div>
    )
  }
}